/**
 * 
 */
function insertDepartment(){
	var department = {
			departname:"root",
			departnumber:123,
			context:"123",
			startDate:"2016-11-08"
	}
	$.ajax({
		cache:false,
		type:'post',
		url:"/graduationProject/insertDepartment",
		contentType:'application/json;charset=utf-8', 
		traditional:true,
		dataType:"JSON",
		data:JSON.stringify(department),
		success:function(data){
		},	
		error:function(data, XMLHttpRequest, textStatus, errorThrown){  
			}  
	}) 
}
function deleteDepartment(){
	var department = {
			departid:12,
	}
	$.ajax({
		cache:false,
		type:'post',
		url:"/graduationProject/deleteDepartment",
		contentType:'application/json;charset=utf-8', 
		traditional:true,
		dataType:"JSON",
		data:JSON.stringify(department),
		success:function(data){
		},	
		error:function(data, XMLHttpRequest, textStatus, errorThrown){  
			}  
	}) 
}
function updateDepartment(){
	var department = {
			departid:2,
			departname:"root111111111111",
			departnumber:12311,
			context:"12113",
			startDate:"2017-11-08"
	}
	$.ajax({
		cache:false,
		type:'post',
		url:"/graduationProject/updateDepartment",
		contentType:'application/json;charset=utf-8', 
		traditional:true,
		dataType:"JSON",
		data:JSON.stringify(department),
		success:function(data){
		},	
		error:function(data, XMLHttpRequest, textStatus, errorThrown){  
			}  
	}) 
}
function findDepartment(){
	var department = {
			departname:"root",
			startDate:"2018-03-01",
			departid:2,
	}
	var departmentMap = {
			department:department,
			page:1,
			pageSize:6,
	}
	$.ajax({
		cache:false,
		type:'post',
		url:"/graduationProject/findDepartment",
		contentType:'application/json;charset=utf-8', 
		traditional:true,
		dataType:"JSON",
		data:JSON.stringify(departmentMap),
		success:function(data){
		},	
		error:function(data, XMLHttpRequest, textStatus, errorThrown){  
			}  
	}) 
}
function findDepartmentByid(){
	var department = {
			departid:3,
	}
	$.ajax({
		cache:false,
		type:'post',
		url:"/graduationProject/findDepartmentByid",
		contentType:'application/json;charset=utf-8', 
		traditional:true,
		dataType:"JSON",
		data:JSON.stringify(department),
		success:function(data){
		},	
		error:function(data, XMLHttpRequest, textStatus, errorThrown){  
			}  
	}) 
}